package com.itheima.day09;

import java.util.Scanner;

public class day09 {
    public static void main(String[] args) {
        //键盘录入一个字符串
        System.out.println("请输入一个字符串");
        Scanner sc = new Scanner(System.in);
        String str = sc.next();

        char[] ch = str.toCharArray();
        int start = 0;
        int end = ch.length-1;
        if(ch[start] != ch[end]){
            String newStr = "";
            for (int i = ch.length-1; i >=0; i--) {
                newStr += str.charAt(i);
            }
            str = newStr;

            char[] ch1 = new char[ch.length];

            for (int i = 0; i < ch.length; i++) {
                ch1[i] = str.charAt(i);
            }
            for (int i = 0; i < ch1.length; i++) {
                if(i %2 != 0){
                    ch1[i] ='*';

                }
                System.out.println(ch1[i]);
            }

        }

    }
}
